import os
import shutil

folder_path = 'F:\学习\数据集\实验室数据集操作版\性诱\性诱网站下载221026\图片'  # 替换为实际的文件夹路径

for file_name in os.listdir(folder_path):
    if file_name.lower().endswith('.jpeg'):
        file_path = os.path.join(folder_path, file_name)
        new_file_name = os.path.splitext(file_name)[0] + '.jpg'
        new_file_path = os.path.join(folder_path, new_file_name)

        shutil.move(file_path, new_file_path)